<template>
    <div>
        <Header></Header>
        <Footer></Footer>
    </div>
</template>

<script>
import Header from '@/components/commons/header/header'
import Footer from '@/components/commons/footer/footer'
import bookController from '@/api/bookController/index'
    export default {
        name:'catalog', //目录
        data(){
            return {
                getListData:{
                    bookId:3,
                    pageSize:50,
                    pageNum:1,
                    sort: 'desc'
                }
            }
        },
        components:{
            Header,
            Footer
        },
        created(){
            this.getCatalog()
        },
        methods:{
            getCatalog(){
                var formData = this.getListData;
                bookController.getChapterInfoByBookId(formData).then(response=>{
                    console.log(response)
                })
            }
        }
    }
</script>

<style scoped>

</style>